<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./茶基地.css">
</head>
<body>
       <!-- header -->
       <header>
            <div class="head">
                <div class="logo"><img src="./img/img/logo.webp" alt=""></div>
                <ul class="table">
                    <li><a href="../01茶首页/茶首页.html">首页</a>
                        <div class="underline"></div>
                    </li>
                    <li><a href="../02茶关于/茶关于.html">关于</a>
                        <div class="underline"></div>
                    </li>
                    <li><a href="../03茶叶/茶叶.html">茶叶</a>
                        <div class="underline"></div>
                    </li>
                    <li><a href="./茶基地.html">基地</a>
                        <div class="underline"></div>
                    </li>
                    <li><a href="../05茶新闻/茶新闻.html">新闻</a>
                        <div class="underline"></div>
                    </li>
                    <li><a href="../06茶联系/茶联系.html">联系</a>
                        <div class="underline"></div>
                    </li>
                </ul>
                <div class="ico">
                    <div><img src="./img/img/搜索.png" alt="" onclick="location.href=('../03茶叶/茶叶.html')"></div>
                    <div><img src="./img/img/用户.png" alt="" onclick="location.href=('../登录注册/登陆注册.html')"></div>
                    <div><img src="./img/img/购物车.png" alt="" onclick="location.href=('../购物车/view/购物车.html')"></div>
                </div>
            </div>
    </header>
        <!-- baner图 -->
        <div class="baner">
            <img src="./img/baner.webp" alt="">
        </div>
        <!-- 种植基地 -->
        <div class="sprtea">
            <div class="sprteabox">
                    <div class="sprteaname">种植基地</div>
                    <div>
                        <div>                    
公司拥有完整、科学、质量管理体系，通过ISO14001，ISO22000国际质量体系认 证，有机产品认证，拥有大量先进、专业的生产设备和检测仪器，秉承“顾客至上，锐意进取”的经营理念，坚持“客户第一”的原则为广大客户提供优质的服务。
                        </div>
                    </div>
                    </div>
            </div>
        <!-- 基地展示 -->
         <div class="jdshow"> 
            <div><img src="./img/teajd1.jpg" alt=""></div>
            <div><img src="./img/teajd2.jpg" alt=""></div>
            <div><img src="./img/teajd3.jpg" alt=""></div>
            <div><img src="./img/teajd4.jpg" alt=""></div>
            <div><img src="./img/teajd5.jpg" alt=""></div>
            <div><img src="./img/teajd6.jpg" alt=""></div>
            <div><img src="./img/teajd7.jpg" alt=""></div>
            <div><img src="./img/teajd8.jpg" alt=""></div>
         </div>
           <!-- 页脚 -->
    <div class="foot">
        <div class="footle">
            <div>
                <div>联系</div>
                <div>Contact</div>
            </div>
            <div>
                <div>关注我们</div>
                <div>
                   
                        <img src="./img/img/微信图标.png" alt="">
                        <img src="./img/img/微博图标.png" alt="">
                </div>
            </div>
            <div class="gsjj">
                <div class="gsjjup" style="font-size: 16px;">起飞页自助建站平台</div>
                <div class="gsjjlo">
                    <div style="font-size: 14px;height: 25px;"><span>地址：苏州市建外SOHO东区2号楼</span></div>
                    <div style="font-size: 14px;height: 25px;"><span>邮编：100000</span></div>
                    <div style="font-size: 14px;height: 25px;"><span>电话：010-69557550</span></div>
                </div>
            </div>
        </div>
        <div  class="footri">
            <div>
                <div><img src="./img/img/wx.webp" alt=""></div>
                <div>微信</div>
            </div>
            <div>
                <div><img src="./img/img/wb.webp" alt=""></div>
                <div>微博</div>
            </div>
        </div>
     </div>
     <div class="talk">
        <div>COPYRIGHT (©) 2019 茶叶类网站  京ICP备11111111号</div>
     </div>
    </body>
    </html>

    <script>
        window.onload=function(){
    //获取cookie
   let cookieStr= document.cookie;
   let cookirArr=cookieStr.split(";");
   let bool=false;
   let username;;
   for(let i=0;i<cookirArr.length;i++){
        //去除空格
     let str=cookirArr[i].trim();

      let key="username=";
      if(str.startsWith(key)){
        bool=true;
        username=str.substring(key.length,str.length);
        break;
      }
   }

   //判断bool标记值
   if(bool){
    console.log(username);
   }else{
        location.href='登录注册.html'
   }
}
    </script>